Functions | |
| def | decoding_char (ctypes_char_array) |
| def | image_callback (pData, pFrameInfo, pUser) |
| def | print_devices_info (deviceList) |
| def | print_interface_info (interfaceList) |
Variables | |
| currentsystem = platform.system() | |
| input_func = raw_input | |
| fun_ctype = get_platform_functype() | |
| stFrameInfo = POINTER(MV_FRAME_OUT_INFO_EX) | |
| pData = POINTER(c_ubyte) | |
| FrameInfoCallBack = fun_ctype(None, pData, stFrameInfo, c_void_p) | |
| CALL_BACK_FUN = FrameInfoCallBack(image_callback) | |
| SDKVersion = MvCamera.MV_CC_GetSDKVersion() | |
| interfaceList = MV_INTERFACE_INFO_LIST() | |
| transportLayerType = MV_GIGE_INTERFACE | MV_CAMERALINK_INTERFACE | MV_CXP_INTERFACE | MV_XOF_INTERFACE | |
| ret = MvCamera.MV_CC_EnumInterfaces(transportLayerType, interfaceList) | |
| nInterfaceIndex = input_func("please input the number of the interface to connect:") | |
| cam_instance = MvCamera() | |
| interface_instance = MvCamera() | |
| curInterface = cast(interfaceList.pInterfaceInfos[int(nInterfaceIndex)], POINTER(MV_INTERFACE_INFO)).contents | |
| deviceList = MV_CC_DEVICE_INFO_LIST() | |
| nCamIndex = input_func("please input the number of the device to connect:") | |
| stDeviceList = cast(deviceList.pDeviceInfo[int(nCamIndex)], POINTER(MV_CC_DEVICE_INFO)).contents | |
| nPacketSize = cam_instance.MV_CC_GetOptimalPacketSize() | |
| def InterfaceAndDevice.decoding_char | ( | ctypes_char_array | ) |
Safely decode a string from a ctypes character array. Compatible with Python 2.x and 3.x, as well as 32-bit and 64-bit environments.
| def InterfaceAndDevice.image_callback | ( | pData, | |
| pFrameInfo, | |||
| pUser | |||
| ) |
| def InterfaceAndDevice.print_devices_info | ( | deviceList | ) |
| def InterfaceAndDevice.print_interface_info | ( | interfaceList | ) |
| currentsystem = platform.system() |
| input_func = raw_input |
| fun_ctype = get_platform_functype() |
| stFrameInfo = POINTER(MV_FRAME_OUT_INFO_EX) |
| pData = POINTER(c_ubyte) |
| FrameInfoCallBack = fun_ctype(None, pData, stFrameInfo, c_void_p) |
| CALL_BACK_FUN = FrameInfoCallBack(image_callback) |
| SDKVersion = MvCamera.MV_CC_GetSDKVersion() |
| interfaceList = MV_INTERFACE_INFO_LIST() |
| transportLayerType = MV_GIGE_INTERFACE | MV_CAMERALINK_INTERFACE | MV_CXP_INTERFACE | MV_XOF_INTERFACE |
| ret = MvCamera.MV_CC_EnumInterfaces(transportLayerType, interfaceList) |
| nInterfaceIndex = input_func("please input the number of the interface to connect:") |
| cam_instance = MvCamera() |
| interface_instance = MvCamera() |
| curInterface = cast(interfaceList.pInterfaceInfos[int(nInterfaceIndex)], POINTER(MV_INTERFACE_INFO)).contents |
| deviceList = MV_CC_DEVICE_INFO_LIST() |
| nCamIndex = input_func("please input the number of the device to connect:") |
| stDeviceList = cast(deviceList.pDeviceInfo[int(nCamIndex)], POINTER(MV_CC_DEVICE_INFO)).contents |
| nPacketSize = cam_instance.MV_CC_GetOptimalPacketSize() |